import React, {Component} from 'react'
import PubSub from 'pubsub-js'

export default class First extends Component {
  componentDidMount() {
    // 订阅消息
    PubSub.subscribe('study', (_, data) => {
      console.log(data)
    })
  }

  render() {
    return (
      <div>

      </div>
    )
  }
}
